import request from '@/utils/request'
export default {
  searchAllList(currentPage,pageSize) {
    return request({
      url: `/customer/searchAll?currentPage=${currentPage}&pageSize=${pageSize}`,
      method: 'get'
    })
  },
  addCustomer(customer){
    return request({
      url: '/customer/add',
      method: 'post',
      data: customer
    })
  },
  deleteCustomer(Cid){
    return request({
      url: `/customer/delete/${Cid}`,
      method: 'delete',
    })
  },
  chargeMoney(chargeDto){
    return request({
      url: `/customer/money`,
      method: 'post',
      data: chargeDto
    })
  },
  searchCustomer(Cid){
    return request({
      url: `/customer/search/${Cid}`,
      method: 'get',
    })
  },
  addMoney(addDto){
    return request({
      url: `/customer/addMoney`,
      method: 'post',
      data: addDto
    })
  },
  searchMoney(par,currentPage,pageSize) {
    return request({
      url: `/billing/cmoney/searchMoney?cid=${par}&currentPage=${currentPage}&pageSize=${pageSize}`,
      method: 'get'
      // params: {
      //   Cid:par.id,
      //   currentPage:par.current,
      //   pageSize:par.size
      // }
    })
  },
  addMemCard(addCard){
    return request({
      url: `/customer/addCard`,
      method: 'post',
      data: addCard
    })
  },


}
